﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PasswordModify.aspx.cs" Inherits="AUV5.Web.Testing.PasswordModify" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <div runat="server" id="divChange" style="display: inline;">
                    <table>
                        <tr>
                            <td class="style_one style_onecen">
                                请输入登录密码
                            </td>
                            <td>
                                <asp:TextBox  TextMode="Password" ID="txbOldPwd" runat="server"
                                    CssClass="alter_password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                                    ControlToValidate="txbOldPwd" ></asp:RequiredFieldValidator>
                                <asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="style_one style_onecen">
                                请输入新密码
                            </td>
                            <td>
                                <asp:TextBox  TextMode="Password" ID="txbNewpassord" runat="server"
                                    CssClass="alter_password" MaxLength="20"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                                    ControlToValidate="txbNewpassord" ValidationGroup="pwdSave"></asp:RequiredFieldValidator>
                             <asp:RegularExpressionValidator ID="RegularExpressionValidator2"  ControlToValidate="txbNewpassord" ValidationExpression="^{6,20}$" runat="server" ErrorMessage="密码长度6-20位">
                               </asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style_one style_onecen">
                                请再输入一次
                            </td>
                            <td>
                                <asp:TextBox ValidationGroup="pwdSave" TextMode="Password" ID="txbRePassword" runat="server"
                                    CssClass="alter_password" MaxLength="20"></asp:TextBox><asp:CompareValidator ID="CompareValidator1"
                                        runat="server" ControlToCompare="txbRePassword"  ControlToValidate="txbNewpassord"
                                        ErrorMessage="两次密码输入不一致"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:ImageButton ID="ImageButton1" runat="server" 
                                    onclick="ImageButton1_Click" />
                            </td>
                            <td>
                                <asp:ImageButton ID="imgbtnSave1" runat="server" CssClass="userprofile_save" ImageUrl="/!images/btn_saveoff.jpg"
                                    onmouseover="MM_swapImage('imgbtnSave1','','/!images/btn_saveon.jpg',6)" onmouseout="MM_swapImgRestore()"
                                    alt="保存"   OnClick="imgbtnSave1_Click" />
                                <asp:Button ID="Button1"  runat="server" Text="Button" onclick="Button1_Click" 
                                    style="height: 21px" />
                            </td>
                        </tr>
                    </table>
                </div>
    </div>
    </form>
</body>
</html>
